package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;
import java.util.List;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_admin" )
public class Admin  implements Serializable {

	private static final long serialVersionUID =  2421226838392379976L;

	/**
	 * 唯一uid
	 */
   	@Column(name = "uid" )
	@Id
	private String uid;

	/**
	 * 用户名
	 */
   	@Column(name = "user_name" )
	private String userName;

	/**
	 * 密码
	 */
   	@Column(name = "pass_word" )
	private String passWord;

	/**
	 * 性别(1:男2:女)
	 */
   	@Column(name = "gender" )
	private String gender;

	/**
	 * 个人头像
	 */
   	@Column(name = "avatar" )
	private String avatar;

	/**
	 * 邮箱
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 出生年月日
	 */
   	@Column(name = "birthday" )
	private Date birthday;

	/**
	 * 手机
	 */
   	@Column(name = "mobile" )
	private String mobile;

	/**
	 * 邮箱验证码
	 */
   	@Column(name = "valid_code" )
	private String validCode;

	/**
	 * 自我简介最多150字
	 */
   	@Column(name = "summary" )
	private String summary;

	/**
	 * 登录次数
	 */
   	@Column(name = "login_count" )
	private Long loginCount;

	/**
	 * 最后登录时间
	 */
   	@Column(name = "last_login_time" )
	private Date lastLoginTime;

	/**
	 * 最后登录IP
	 */
   	@Column(name = "last_login_ip" )
	private String lastLoginIp;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 昵称
	 */
   	@Column(name = "nick_name" )
	private String nickName;

	/**
	 * QQ号
	 */
   	@Column(name = "qq_number" )
	private String qqNumber;

	/**
	 * 微信号
	 */
   	@Column(name = "we_chat" )
	private String weChat;

	/**
	 * 职业
	 */
   	@Column(name = "occupation" )
	private String occupation;

	/**
	 * github地址
	 */
   	@Column(name = "github" )
	private String github;

	/**
	 * gitee地址
	 */
   	@Column(name = "gitee" )
	private String gitee;

	/**
	 * 拥有的角色uid
	 */
   	@Column(name = "role_uid" )
	private String roleUid;

	/**
	 * 履历
	 */
   	@Column(name = "person_resume" )
	private String personResume;

   	private Role role;

}
